package com.li.onjava8.concurrent.cf.example.cake;

import com.li.onjava8.concurrent.utils.Nap;

import java.util.concurrent.CompletableFuture;

/**
 * 2.2 制作砂糖
 * @author li
 * @date 2023/10/31 15:26
 */
public class Frosting {
    private Frosting() {
    }

    static CompletableFuture<Frosting> make() {
        new Nap(0.1);
        return CompletableFuture.completedFuture(new Frosting());
    }
}
